package com.bytedance.common.databinding;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable;
import java.io.Serializable;

public class ObservableInt extends a implements Parcelable, Serializable {
    public static final Parcelable.Creator CREATOR = new k();
    private int mValue;
    static final long serialVersionUID = 1;

    public ObservableInt() {

    }

    public ObservableInt(int arg1) {

        this.mValue = arg1;
    }

    public int describeContents() {
        return 0;
    }

    public int get() {
        return this.mValue;
    }

    public void set(int arg2) {
        if(arg2 != this.mValue) {
            this.mValue = arg2;
            this.notifyChange();
        }
    }

    public void writeToParcel(Parcel arg2, int arg3) {
        arg2.writeInt(this.mValue);
    }
}

